<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--{include file='comm/header.tpl'}-->
    <!--{include file='comm/comm_cal.tpl'}-->
    <title>领奖纪录修改</title>
</head>
<body>

<style>

    .comm_content table tr {
        height: 30px;
    }

    .comm_content{
        padding:10px;
    }

    #addSet{
        border-collapse: collapse;
        border-spacing: 0;
        width:100%;
        margin-top: 10px;
    }

    #addSet tr td{
        border: 1px solid #CCCCCC;
        padding: 0 3px;
        width:128px;
    }

</style>

<div style="width:100%;">

    <div class="items clearfix">

        <h2 class="tal">正在操作：领奖纪录修改</h2>

        <div class="items2">

            <form id="set_form">

                <input type='hidden' value="<!--{$receive_prize[0].pcustID}-->" name='pcustID' id='pcustID'>
                <table>
                    <tr>
                        <td  width="150" class='tar'>
                            领奖人：
                            </td>
                        <td>
                            <input type='text' value="<!--{$receive_prize[0].custName}-->" name='custName' id='custName'>
                            </td>
                        </tr>
                    <tr>
                        <td  width="150" class='tar'>
                            领奖人手机号码：
                            </td>
                        <td>
                            <input value="<!--{$receive_prize[0].mobile}-->" type='text' name='mobile' id='mobile'>
                            </td>
                        </tr>
                   <tr>
                        <td  width="150" class='tar'>
                            收货地址：
                            </td>
                        <td>
                            <input name="address" id="address" style="width:538px;" type="text" value="<!--{$receive_prize[0].address}-->">
                            </td>
                        </tr>
                    <tr>
                        <td  width="150" class='tar'>
                            身份证号码：
                            </td>
                        <td>
                            <input value="<!--{$receive_prize[0].identityCard}-->" name='identityCard' id='identityCard' type='text'>
                            </td>
                        </tr>
                    </table>

            </form>
        </div>
    </div>

    <div class="bottom_fixbox">
        <div class="rectbox tac">
            <input type="hidden" value="" name="dataCache" id="dataCache">
            <input type="button" value="保存" onclick="award.check();" class="btn">&nbsp;&nbsp;&nbsp;
            <input type="button" value="关闭" onclick="E.closeWindows();" class="btn">
        </div>
    </div>

    <!--{include file='comm/footer.tpl'}-->

</div>

<script type="text/javascript">


var award = {
    check: function(){

        $msg = '';

        if(E.isEmpty($('#custName').val())){
            $msg += '领奖人不能为空<br/>';
        }

        if(!E.isMobile($('#mobile').val())){
            $msg += '请输入正确手机号码<br/>';
        }

        if(E.isEmpty($('#address').val())){
            $msg += '收货地址不能为空<br/>';
        }

        if($msg != ''){
            E.alert($msg);
            return false;
        }

        var dt = E.getFormValues('set_form');

        E.loadding.open();

        E.ajax_post({
            url: '/invokingAjax-backend/promotion/awardRecord.ajax?operFlg=2',
            data: {'dt':dt},
            call: "award.result"
        });
    },
    result: function(o){
        E.loadding.close();
        if(o.code = '200'){
            E.alert(o.message,2,'award.reload')
        }else{
            E.alert(o.message);
        }

    },
    reload: function(){
        E.opener('award.load');
        E.closeWindows();
    }
}

</script>

</body>
</html>